<template>
	<view>
		<u-no-network></u-no-network>
		<view class="u-content">
			<view class="u-content__circle">
				<u-icon name="close" color="#fff" size="30"></u-icon>
			</view>
			<text class="u-content__normal" style="text-align: center;">{{msg}}</text>
			<div style="margin-bottom: 20px;"></div>
			<u-button text="返回首页" @click="goToIndex()"></u-button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				msg: ''
			}
		},
		onLoad(option) {
			this.msg = option.msg
		},
		methods: {
			goToIndex() {
				uni.switchTab({
					url: '/pages/tabbar/index/index'
				});
			}
		}
	}
</script>

<style lang="scss" scoped>
	.u-content {
		padding: 150px 60px 0;
		@include flex(column);
		align-items: center;
		justify-content: center;

		&__circle {
			background-color: #e45656;
			@include flex;
			border-radius: 100px;
			width: 60px;
			height: 60px;
			align-items: center;
			justify-content: center;
		}

		&__normal {
			font-size: 15px;
			margin-top: 15px;
		}
	}
</style>